package com.example.demo.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.example.demo.entity.FinanceAccountsReceivable;
import com.example.demo.entity.Orders;
import com.example.demo.entity.FinanceReceipt;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import com.example.demo.entity.Customer;

/**
 * 应收账款 DTO定义
 * @author MyName
 * @version 1.0
 * @date 2024-03-04
 * Copyright © MyCompany
 */
@Getter
@Setter
@Accessors(chain = true)
public class FinanceAccountsReceivableDTO extends FinanceAccountsReceivable {

    private static final long serialVersionUID = -9002568163400348936L;

    /**
     * 关联字段 客户.名称：Customer.name
     */
    @BindQuery(comparison = Comparison.EQ, entity = Customer.class, field = "name", condition = "this.customer_id=id")
    private String customerName;
}
